README file for Replication package

Paper title: Vacancy Duration and Wages
Authors: Ihsaan Bassier, Alan Manning and Barbara Petrongolo
Date compiled: 14 Jan 2025

Description:
This project uses proprietary data from Adzuna of the near-universe of online vacancy adverts in the UK. 
These data are *not* included in this replication package since the data are proprietary; therefore, to be replicated, the data must be procured by agreement with Adzuna. 
As such, the code will not run in its current form. 

Contents of this folder:
1) "do" subdirectory: Mainly Stata .do files containing code to replicate all main and appendix exhibits	
2) "data" subdirectory: Non-proprietary data used in the paper. Note that the main data files were proprietary and so are missing.
3) "out" subdirectory:
4) Manuscript of final paper in pdf and .tex with .bib references

Instructions for reproducing tables and figures:
1) Run files to clean and generate paper in the order
i) BMP_Vacancies_clean0.R in R
ii) BMP_Vacancies_clean1.do in Stata
iii) BMP_Vacancies_clean2.do in Stata
2) Generates the main tables 1-3 and figures 1-2:
BMP_Vacancies_MainExhibits.do in Stata
3) Generate appendix tables C1 to C6: 
BMP_Vacancies_AppTables.do in Stata
4) Generate appendix figures C2 to C15: 
BMP_Vacancies_AppFigs.do in Stata
5) Generate appendix figure C1: 
BMP_Vacancies_figsAmenities.R in R

This project used Stata version 18 and R version 4.4.0

Proprietary data from Adzuna:
-- Main variables: * adzuna_advert_id: unique identifier for vacancy advert 
* company_name: Name of firm that is putting out the vacancy
* date_created: Date vacancy advert was created 
* title: Advertised title of vacancy 
* location_path: Full location of vacancy 
* salary_raw: Salary field of vacancy
-- Instructions on how to access:
Adzuna is a company that mines labour search data and sells this
To interested entities, including government departments and 
Researchers such as for this project. One can get in touch with
Them directly as advertised on their website 
(https://www.adzuna.co.uk/adzuna-intelligence/contact/).
